From 6ad06c9e4f93352b5034cdd4e7bceac389fbba7a Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Mon, 12 Mar 2018 22:15:07 -0500 Subject: [PATCH] ci: add README and makefile for containers Add a basic README explaining the containers and how people can use them to locally test with if they see an error in CI and want to reproduce it locally. Added a makefile to help with building and pushing the containers to the container registry. Signed-off-by: Doug Goldstein Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Wei Liu Acked-by: Andrew Cooper --- automation/build/Makefile | 17 +++++++++++++++++ automation/build/README.md | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 automation/build/Makefile create mode 100644 automation/build/README.md diff --git a/automation/build/Makefile b/automation/build/Makefile new file mode 100644 index 0000000000..773b16037c --- /dev/null +++ b/automation/build/Makefile @@ -0,0 +1,17 @@ + +# the base of where these containers will appear +REGISTRY := registry.gitlab.com/xen-project/xen + +help: + @echo "Builds containers for building Xen based on different distros" + @echo "To build one run 'make DISTRO/VERSION'. Available containers:" + @$(foreach file,$(sort $(subst .dockerfile,,$(wildcard */*.dockerfile))), \ + echo ${file} ; \ + ) + @echo "To push container builds, set the env var PUSH" + +%: %.dockerfile ## Builds containers + docker build -t $(REGISTRY)/$(@D):$(@F) -f $< $(